const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const studentsSchema = new Schema({
    stu_id: {
        type: String,
        unique: true,
        required: true
    },
    stu_name: {
        type: String,
        unique: false,
        required: true
    },
    stu_sex: {
        type: String,
        unique: false,
        required: true
    },
    stu_date: {
        type: Date,
        default: Date.now
    },
    // stu_jg: {
    //     type: String
    // },
    stu_head_img: {
        type: String
    },
    stu_hobby: Schema.Types.Mixed
})